import { axios } from '@/utils/request'

const api = { 
  getSetting: '/adminapi/site/getSetting',
  setSetting: '/adminapi/site/setSetting',
  dealtownUserList: '/adminapi/dealtown/dealtownUserList',
  addDealtownUser: '/adminapi/dealtown/addDealtownUser',
  deleteDealtownUser: '/adminapi/dealtown/deleteDealtownUser',
}

export default api

 

export function getSetting(parameter) {
  return axios({
    url: api.getSetting,
    method: 'get',
    params: parameter
  })
}

export function setSetting(parameter) {
  return axios({
    url: api.setSetting,
    method: 'post',
    data: parameter
  })
}

export function getDealtownUserList(parameter) {
  return axios({
    url: api.dealtownUserList,
    method: 'get',
    params: parameter
  })
}

export function addDealtownUser(parameter) {
  return axios({
    url: api.addDealtownUser,
    method: 'post',
    data: parameter
  })
}

export function deleteDealtownUser(parameter) {
  return axios({
    url: api.deleteDealtownUser,
    method: 'post',
    data: parameter
  })
}